/**
 * 全局样式文件
 * 智慧医疗管理系统全局样式定义
 */

@use './variables.scss' as *;

// 全局样式重置
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#app {
  height: 100%;
}

// 滚动条样式
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a1a1a1;
}

// 常用工具类
.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-left {
  text-align: left;
}

.clearfix::after {
  content: '';
  display: table;
  clear: both;
}

// 页面动画
.fade-enter-active,
.fade-leave-active {
  transition: opacity $transition-duration $transition-function;
}

.fade-enter-from,
.fade-leave-to {
  opacity: 0;
}

// 布局样式
.layout-container {
  height: 100vh;
  overflow: hidden;
}

.main-content {
  padding: 20px;
  background-color: $bg-color;
  min-height: calc(100vh - #{$header-height});
  overflow-y: auto;
}

// 卡片样式
.card-container {
  background: $bg-color-light;
  border-radius: 8px;
  box-shadow: $box-shadow-base;
  overflow: hidden;
}

// 表格样式优化
.el-table {
  .el-table__header-wrapper {
    th {
      background-color: #fafafa;
      color: $text-color-primary;
      font-weight: 600;
    }
  }
}

// 表单样式优化
.form-container {
  .el-form-item__label {
    font-weight: 500;
    color: $text-color-primary;
  }
}

// 按钮组样式
.button-group {
  display: flex;
  gap: 12px;
  align-items: center;
}

// 搜索栏样式
.search-container {
  background: $bg-color-light;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: $box-shadow-base;
} 